<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div></div>
  <div></div>
  <div></div>
  <script>
    //1. 数组的合并
    let a = [1,2,3];// 1,2,3
    let b = [4,5,6];// 4,5,6

    let c = [...a, ...b];

    //2. 数组的克隆
    let d = [1,2,3];
    let f = [...d];// 浅拷贝

    //3. 将伪数组转为真数组
    //获取页面中的所有的 div
    let divs = document.querySelectorAll('div');
    let result = [...divs];

    console.log(result);
  </script>
</body>
</html>